package com.xiaoyu.lanling.feature.ontv.data

import com.xiaoyu.base.net.RequestCreator
import com.xiaoyu.lanling.common.config.HttpConfig
import com.xiaoyu.lanling.event.ontv.OnTVSettingEvent

object TVSetting {

    fun updateOnTVSetting(requestTag: Any, showOnTV: Boolean) {
        RequestCreator.create<OnTVSettingEvent>(requestTag, OnTVSettingEvent::class.java)
                .setRequestUrl(HttpConfig.LANLING_ONTV_SETTING)
                .addPostData("showOnTV", showOnTV)
                .enqueue()
    }
}